//
//  ExbitionCompanyCell.m
//  PASystem
//
//  Created by 刘沿 on 16/8/24.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "ExbitionCompanyCell.h"

@implementation ExbitionCompanyCell

+(instancetype)WithExbitionCompanyCell{

    return [[[NSBundle mainBundle] loadNibNamed:@"ExbitionCompanyCell" owner:nil options:nil] lastObject];
}


- (void)setModel:(ExhibitionCompanyModel *)model{
    _model = model;
    self.NAME.text = model.NAME;
    self.LINKMAN.text = model.LINKMAN;
    self.PHONE.text = model.PHONE;
    self.MAINCNT.text = model.MAINCNT;
    self.PNUM.text = [NSString stringWithFormat:@"%@/人",model.PNUM];
    self.TRIP.text = model.TRIP;
    if ([self.JFTYPE.text isEqualToString:@"1"]) {
        self.JFTYPE.text = @"已缴费";
    }else if ([self.JFTYPE.text isEqualToString:@"2"]){
    
       self.JFTYPE.text = @"未缴费";
    }else{
    
      self.JFTYPE.text = @"部分缴费";
    }
   
    if (self.BMFEE.text.length != 0) {
        self.BMFEE.text = [NSString stringWithFormat:@"%@/元",model.BMFEE];
    }else{
    
     self.BMFEE.text = @"";
    }
    
    if (self.RYFEE.text.length != 0) {
        
        self.RYFEE.text = [NSString stringWithFormat:@"%@/元",model.RYFEE];
        
    }else{
        
        self.RYFEE.text = @"";
    }
    
    
    if (self.DJFEE.text.length != 0) {
        self.DJFEE.text = [NSString stringWithFormat:@"%@/元",model.DJFEE];
    }else{
        
        self.DJFEE.text = @"";
    }
    if (self.TWFEE.text.length != 0) {
        self.TWFEE.text = [NSString stringWithFormat:@"%@/元",model.TWFEE];
    }else{
        
        self.TWFEE.text = @"";
    }
   
    self.BOOTHNUM.text = model.BOOTHNUM;
    
}






@end
